<?php

require_once ('Zend/Sql/Adapter/Standard/Expression/Identifier/Abstract.php');

class Zend_Sql_Adapter_Standard_Expression_Identifier_Schema
	extends Zend_Sql_Adapter_Standard_Expression_Identifier_Abstract
{
	/**
	 * @var string
	 */
	protected $schema;
	
	public function __construct($name=null) {
		if (isset($name)) {
			$this->setSchema($name);
		}
	}
	
	/**
	 * @return the $schema
	 */
	public function getSchema() {
		return $this->schema;
	}

	/**
	 * @param string $schema
	 */
	public function setSchema($schema) {
		$this->schema = $schema;
	}
	
	/**
	 * @return the $schema
	 */
	public function toString() {
		$schema = '';
		if ($this->schema) {
			$schema = '`' . $this->schema . '`';
		}
		return $schema;
	}
	
	/**
	 * @return the $schema
	 */
	public function getName() {
		return $this->getSchema();
	}
	/**
	 * @return the $schema
	 */
	public function setName($name) {
		return $this->setSchema($name);
	}
}
